package com.rockcent.mall.lib.repository;

import com.rockcent.common.common.PageResult;
import com.rockcent.common.domain.enumclass.Whether;
import com.rockcent.mall.lib.domain.IntegrationChannel;
import com.rockcent.mall.lib.dto.IntegrationChannelDto;
import org.springframework.stereotype.Repository;

/**
 * Created by DK on 16/12/17.
 */
@Repository
public interface IntegrationChannelRepositoryCustom {
    PageResult<IntegrationChannelDto> findByNameAndMallIdAndIsDelete(String name, Long mallId, Whether no, PageResult page);

    Long caculateQuantityByChannelId(Long integrationChannelId, Long mallId);
}
